package list;


public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList =new MyArrayList();
        myArrayList.add(3);
        myArrayList.add(1);
        myArrayList.add(4);
        myArrayList.add(7);
        myArrayList.add(5);
       // System.out.println(myArrayList.findout(4));查找
        // System.out.println(myArrayList.get(2));得到
        //myArrayList.add(3,8);添加
        // myArrayList.set(2,8);修改
        // myArrayList.remove(4);删除
        //System.out.println(myArrayList.size());长度
        //myArrayList.clear();清空

        myArrayList.display();//打印
    }
}
